package com.xzan.medusa.core.manager;

import com.xzan.medusa.common.query.PageResult;
import com.xzan.medusa.dal.model.ActHiInvestmentDO;
import com.xzan.medusa.dal.query.ActHiInvestmentQuery;

import java.util.List;


/**
 * Manager for ActHiInvestment.
 */
public interface ActHiInvestmentManager {
    /**
     * query count by query condition.
     */
    int countByQuery(ActHiInvestmentQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(ActHiInvestmentQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(ActHiInvestmentDO record);

    /**
     * insert selective.
     */
    long insertSelective(ActHiInvestmentDO record);

    /**
     * batch insert.
     */
    int batchInsert(List<ActHiInvestmentDO> records);

    /**
     * select by query condition.
     */
    List<ActHiInvestmentDO> selectByQuery(ActHiInvestmentQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<ActHiInvestmentDO> selectByQueryWithPage(ActHiInvestmentQuery query);

    /**
     * select by primary key.
     */
    ActHiInvestmentDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( ActHiInvestmentDO record,  ActHiInvestmentQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(ActHiInvestmentDO record, ActHiInvestmentQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(ActHiInvestmentDO record);
}